﻿using System;
using System.Collections.Generic;
using Autodesk.Revit.DB;
using YJKArchUtils.Utils;

namespace YJKRevitDimensionText.OneKeyPlanDim.LevelDim
{
	public class DimData
	{
		public Dictionary<string, List<PlanarFace>> ClassificationFaltPlanarFaceByLevel()
		{
			Dictionary<string, List<PlanarFace>> dictionary = new Dictionary<string, List<PlanarFace>>();
			foreach (PlanarFace planarFace in this.lstPlanarFaceFlatRoof)
			{
				string key = Common.FeetToMM(planarFace.Origin.Z).ToString("f3");
				List<PlanarFace> list = new List<PlanarFace>();
				if (dictionary.TryGetValue(key, out list))
				{
					list.Add(planarFace);
				}
				else
				{
					list = new List<PlanarFace>();
					list.Add(planarFace);
					dictionary[key] = list;
				}
			}
			return dictionary;
		}

		public List<XYZ> m_lstSaveTheRoof = new List<XYZ>();

		public List<PlanarFace> lstPlanarFaceSlopeRoof = new List<PlanarFace>();

		public List<PlanarFace> lstPlanarFaceHalfSlopeRoof = new List<PlanarFace>();

		public List<PlanarFace> lstPlanarFaceFlatRoof = new List<PlanarFace>();
	}
}
